<?php $this->renderPartial('../../common/_header');?>
<div class="container my-container image-view">

    <div class="row">
        <div class="col col-lg-9">
            <?php $this->renderPartial('_view', array('data' => $model))?>

            <div class="fb-like" data-href="<?php echo $model->url?>" data-send="true" data-width="450" data-show-faces="false"></div>

            <div class="post-content bottom">
                <?php if($model->desc):?>
                    <blockquote class="top bottom-2"><?php echo $model->desc?></blockquote>
                    <?php endif?>

                <h4 class="title">Comments ( <?php echo $model->fb_comment_count?> )<span class="line"></span></h4>

                <div class="fb-comments" data-href="<?php echo $model->url?>" data-width="470" data-num-posts="10"></div>

            </div>

            <hr>
            <ul class="pager">
                <?php if($model->newer):?>
                    <li class="previous"><a title="<?php echo $model->newer->nameEncode?>" href="<?php echo $model->newer->url?>">← Ảnh trước</a></li>
                    <?php endif?>
                <?php if($model->older):?>
                    <li class="next"><a title="<?php echo $model->older->nameEncode?>" href="<?php echo $model->older->url?>">Ảnh sau →</a></li>
                    <?php endif?>
            </ul>


        </div>
        <div class="col col-lg-3">
            <?php $this->renderPartial('../../common/_sidebar')?>
        </div>
    </div>

</div>
